package com.ruoyi.exam.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;


/**
 * 题库对象 exam_question_bank
 *
 * @author Tellsea
 * @date 2025-05-30
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("exam_question_bank")
public class ExamQuestionBank extends BaseEntity {

    /**
     * 题库ID
     */
    @TableId
    private Long bankId;

    /**
     * 题库名称
     */
    @Excel(name = "题库名称")
    private String bankName;

    /**
     * 题库编码
     */
    @Excel(name = "题库编码")
    private String bankCode;

    /**
     * 所属分类
     */
    @Excel(name = "所属分类")
    private Long categoryId;

    /**
     * 题库描述
     */
    @Excel(name = "题库描述")
    private String description;

    /**
     * 题目数量
     */
    @Excel(name = "题目数量")
    private Long questionCount;

    private ExamUserBankProgress examUserBankProgress;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 是否公开（0私有 1公开）
     */
    @Excel(name = "是否公开", readConverterExp = "0=私有,1=公开")
    private String isPublic;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
